package com.xuecheng.base.model.po;

import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
@ToString
public class PageResult<T> {
 // 数据列表
 public List<T> items;

 //总记录数
 public long counts;

 //当前页码
 public long page;

 //每页记录数
 public long pageSize;

 public PageResult(List<T> items, long counts, long page, long pageSize) {
  this.items = items;
  this.counts = counts;
  this.page = page;
  this.pageSize = pageSize;
 }

 public PageResult() {
 }
}
